<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%--
  Created by IntelliJ IDEA.
  User: 14274
  Date: 2023/8/5
  Time: 21:09
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<html>
  <head>
    <title>管理员系统-查看专业成绩</title>
    <link rel="stylesheet" href="css/adm-stuspesco.css">
  </head>
  <body>
  <!-- body页面主体div -->
  <div class="body">


    <!-- sidebar侧边栏div -->
    <div class="sidebar">
      <!-- logo -->
      <div class="logo">
        <h4>校园管理系统</h4>
      </div>
      <!-- functions功能链接 -->
      <ul class="functions">

        <li>
          <dl><dt><img src="imgs/person.png">个人中心
            <dd><a href="adm-home.jsp">查看信息</a></dd>
            <dd><a href="#">修改信息</a></dd>
            </dt>
          </dl>
        </li>

        <li>
          <dl><dt>学生信息
            <dd><a href="student?methodName=searchs">查看学生信息</a></dd>
            <dd><a href="#">修改学生信息</a></dd>
            </dt>
          </dl>
        </li>

        <li>
          <dl><dt>教师信息
            <dd><a href="teacher?methodName=search">查看教师信息</a></dd>
            <dd><a href="#">修改教师信息</a></dd>
            </dt>
          </dl>
        </li>

        <li>
          <dl><dt>查看成绩
            <dd><a href="stuandpro?methodName=search">专业分类</a></dd>
            <dd><a href="#">班级分类</a></dd>
            </dt>
          </dl>
        </li>

        <li>
          <dl><dt>成绩统计
            <dd><a href="adm-stats.jsp">各课成绩统计图</a></dd>
            <dd><a href="#">333</a></dd>
            </dt>
          </dl>
        </li>

        <li>
          <dl><dt><a href="Out?methodName=Out">退出</a>
          </dt></dl>
        </li>

      </ul>
    </div>
    <div class="nav">
      <div class="title">
        <h1>教师信息</h1>
      </div>
    </div>

    <div class="info">
      <!-- search查询div -->
      <div class="search">
        <form class="search-form" action="stuandpro?methodName=search" method="post">
          <input type="hidden" id="page" name="cp" value=""/>
          <input type="hidden" id="pagesize" name="ps" value="${currentSize}"/>
          <div class="search-info">
            <span>学号:</span>
            <input type="text" name="stunum" class="search-input" value="${stunum}"  placeholder="请输入学生学号">
          </div>
          <div class="search-info">
            <span>姓名:</span>
            <input type="text" name="name" class="search-input" value="${name}"  placeholder="请输入姓名">
          </div>
          <div class="search-info">
            <span>专业:</span>
            <select name="specialty" class="search-input" id="search-select">
              <option selected="selected">全部专业</option>
              <c:forEach items="${facultyList}" var="facultyList">
                <option>${facultyList.faculty}</option>
              </c:forEach>
            </select>

          </div>
          <button type="submit" class="search-sub">搜索</button>
        </form>
      </div>

      <div class="details">

      </div>
      <div>
        <table class="table-info">
          <tr>
            <td><span>学号</span></td>
            <td><span>姓名</span></td>
            <td><span>专业</span></td>
            <td><span>课程</span></td>
            <td><span>分数</span></td>
          </tr>
          <c:forEach items="${pager.list}" var="list">
            <tr>
              <td><span><c:out value="${list.stunum}"/></span></td>
              <td><span><c:out value="${list.name}"/></span></td>
              <td><span><c:out value="${list.specialty}"/></span></td>
              <td><span><c:out value="${list.course}"/></span></td>
              <td><span><c:out value="${list.score}"/></span></td>
            </tr>
          </c:forEach>

        </table>
      </div>
      <!-- 分页页码开始 -->
      <%@ include file="adm-stuspesco-include.jsp"%>
      <!-- 分页页码结束 -->

    </div>

  </div>

  </body>
</html>
<script src="js/jquery-1.12.4.js"></script>
<script src="js/flexible.js"></script>
<script src="js/adm-stuspesco.js"></script>
<script src="js/jquery-1.8.3.min.js"></script>

